﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
 
    <script type='text/html' template> 
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}"/>
    </script>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>交易单号</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Code' value='{{ d.params.Code || '' }}' lay-verify='required' placeholder='交易单号' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>用户ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='UserID' value='{{ d.params.UserID || '' }}' lay-verify='required' placeholder='用户ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>账单类型 账单类型[0.订单支付|1.订单退款|2.其他]</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Type' value='{{ d.params.Type || '' }}' lay-verify='required|number' placeholder='账单类型 账单类型[0.订单支付|1.订单退款|2.其他]' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>类型说明</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='TypeNote' value='{{ d.params.TypeNote || '' }}' lay-verify='required' placeholder='类型说明' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>交易金额</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Money' value='{{ d.params.Money || '' }}' lay-verify='required' placeholder='交易金额' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>订单号集合</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='OrderNumbers' value='{{ d.params.OrderNumbers || '' }}' lay-verify='required' placeholder='订单号集合' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>备注</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='RMK' value='{{ d.params.RMK || '' }}' lay-verify='required' placeholder='备注' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>支付方式</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Mode' value='{{ d.params.Mode || '' }}' lay-verify='required' placeholder='支付方式' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>支付平台账号</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Account' value='{{ d.params.Account || '' }}' lay-verify='required' placeholder='支付平台账号' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>支付平台流水号</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='FlowNumber' value='{{ d.params.FlowNumber || '' }}' lay-verify='required' placeholder='支付平台流水号' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>账单状态 [0.未完成|1.已完成|2.取消]</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='State' value='{{ d.params.State || '' }}' lay-verify='required|number' placeholder='账单状态 [0.未完成|1.已完成|2.取消]' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他1</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Other1' value='{{ d.params.Other1 || '' }}' lay-verify='required' placeholder='其他1' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他2</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Other2' value='{{ d.params.Other2 || '' }}' lay-verify='required' placeholder='其他2' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他3</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Other3' value='{{ d.params.Other3 || '' }}' lay-verify='required' placeholder='其他3' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>店铺ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='StoreID' value='{{ d.params.StoreID || '' }}' lay-verify='required' placeholder='店铺ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>交易成功时间</label>
        <div class='layui-input-inline'>
            <script type='text/html' template  lay-done='layui.data.datedone(d.params);'>
                <input type='text' name='SuccessTime' readonly='readonly' id='SuccessTime' value='{{ d.params.SuccessTime || '' }}' lay-verify='datetime' placeholder='yyyy-MM-dd HH:mm:ss' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
     
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>

<script type="text/javascript"> 
    layui.use(['form','admin','upload','laydate'], function () {
        var form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
    });
    
    layui.data.getSelSource = function (d,sourceName) { 
         layui.use(['admin','form'], function () {
                var $ = layui.$;
                var form = layui.form;
                var admin = layui.admin;
     
        });
    }
 
     
    layui.data.setUpload = function (d) { 
        layui.use(['upload','admin'], function () {
                var $ = layui.$,
                upload = layui.upload,
                admin = layui.admin;
                var formSelects = layui.formSelects;
      
        });
    }

    
    layui.data.datedone = function (d) { 
        layui.use(['laydate'], function () {
                var laydate = layui.laydate;
    
            //日期时间选择器
            laydate.render({
                elem: '#SuccessTime'
              , type: 'datetime'
              , calendar: true
            });
            laydate.val = d.SuccessTime;
 
        });
    }   
</script>
